﻿/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/


using System;
using System.Collections.Generic;
using System.Text;

namespace CoreCms.Net.Model.FromBody
{
    /// <summary>
    /// 添加用
    /// </summary>
    public class FMCartAdd
    {
        /// <summary>
        /// 加购item的形式，
        /// </summary>
        public List<FMCartAddItem> addItem=new List<FMCartAddItem>();
        /// <summary>
        /// CoreCms.Net.Configuration.GlobalEnumVars.AddCartType
        /// </summary>
        public int type { get; set; } = 1;


        /// <summary>
        /// CoreCms.Net.Configuration.GlobalEnumVars.OrderType
        /// </summary>
        public int cartType { get; set; } = 1;

        /// <summary>
        /// 非普通货品，关联对象序列
        /// </summary>
        public int objectId { get; set; } = 0;

       public int goodsId { get; set; }
    }

    public class FMCartAddItem
    {
        public int id { get; set; }
        /// <summary>
        /// 单品数量
        /// </summary>
        public int Nums { get; set; } = 0;

        /// <summary>
        /// 货品序号
        /// </summary>
        public int ProductId { get; set; } = 0;
        //后端用
        public int canBuyNum { get; set; } = 0;
    }

    /// <summary>
    /// 获取列表用
    /// </summary>
    public class FMCartGetList
    {
       

        /// <summary>
        /// 购物车数据
        /// </summary>
        public int[] ids { get; set; }

        public List<FMCartAddItem> editList { get; set; }

        public int[] selectIds { get; set; }
        /// <summary>
        /// 区域编码
        /// </summary>
        public int areaId { get; set; } = 0;

     

        /// <summary>
        /// 运费模型id
        /// </summary>
        public int freightId { get; set; } = 0;

        /// <summary>
        /// 包装模型id
        /// </summary>
        public int packageId { get; set; } = 0;
      
        /// <summary>
        ///  发票 0=不需要发票，1=需要发票，
        /// </summary>
        public int invoice { get; set; } = 0;

        #region 备用
        /// <summary>
        /// 积分
        /// </summary>
        public int point { get; set; } = 0;
        /// <summary>
        /// 优惠券码
        /// </summary>

        public string couponCode { get; set; }
        #endregion

    }



}
